"""pyscript URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path, re_path
from . import views
from django.conf.urls import url

urlpatterns = [
    # 管理界面
    path('admin/', admin.site.urls),

    # 主页
    re_path(r'^$', views.index),

    # 合同改变工具
    re_path(r'^contraChange$', views.contractChange, name="contract"),

    # 提交表单
    re_path(r'^subChan$', views.process_form, name="subChan"),

    # 返回表单
    re_path(r'^getXml$', views.get_data),

    # 车控名称改变工具
    re_path('carChange', views.carChange, name="carChange"),

    # 提交车控表单
    re_path('subCar', views.subCarChan, name='subCarChan'),

    # 返回车控表单
    #re_path('getCarChange', views.get_carChange),
]
